home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Emulatoren / zxam20.lha / ZXAM Spectrum / ZXAM_Rexx / Español / LoadScreen.zxam < prev    next >
Encoding:
Text File  |  1995-01-17  |  791 b   |  27 lines

  1. /* este scrip carga una pantalla de spectrum (ficheros .scr salvados por "Z80") */
  2.     
  3.     /* comprobar si el emulador está ahi... */
  4.     address command
  5.     
  6.     if ~show(ports,ZXAM_REXX) then do
  7.         requestchoice 'title "ZXAM Script error..." body "No encuentro el puerto del emulador!!" gadgets "AARGH!"'
  8.         exit
  9.         end
  10.  
  11.     /* requester LOAD */
  12.     oldpath=zxamactloadpath()
  13.     oldpattern=zxamactpattern()
  14.     zxampattern('#?.scr')
  15.     nombre=zxamloadrequester('Selecciona el fichero .scr...')
  16.     zxamloadpath(oldpath)
  17.     zxampattern(oldpattern)
  18.     if nombre='' then exit 0    /* CANCEL */
  19.     
  20.     pantalla=zxampploadfile(nombre)    /* cargamos el fichero completo */
  21.  
  22.     if length(pantalla)~=6912 then exit   /* comprobar si es una pantalla de spectrum */
  23.     
  24.     zxamputmem(16384,pantalla)    /* colocar el fichero en la pantalla... */
  25.     
  26.     exit
  27.